package D;

/**
 * 蔬菜
 */
public class Vegetables {
    private String eat;
    public Vegetables(){}
    public Vegetables(String eat){
        this.eat = eat;
    }
    public void cooking(){
        System.out.println("这个蔬菜能用来"+eat+"着吃");
    }
    public void use(){
        System.out.println("煎、炒、煮、炸");
    }

    public String getEat() {
        return eat;
    }

    public void setEat(String eat) {
        this.eat = eat;
    }
}
